package com.jddup.program.dao.statement;

import com.jddup.common.pojo.TableMeta;

import java.lang.reflect.InvocationTargetException;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.List;

/**
 * Created by ZZB on 2017/10/19.
 */
public interface IInsertPrepareStatementSetter {
    void setInPrepareStatement(PreparedStatement preparedStatement, TableMeta tableMeta, Object object) throws InvocationTargetException, NoSuchMethodException, IllegalAccessException, NoSuchFieldException, SQLException;
    void setBatchInPrepareStatement(PreparedStatement preparedStatement, TableMeta tableMeta, List<?> objects) throws SQLException, NoSuchMethodException, NoSuchFieldException, IllegalAccessException, InvocationTargetException;
}
